#pragma once
#include <Windows.h>
#include <d3d9.h>
class FWGame
{
private:
	static HRESULT CALLBACK WinProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam);
protected:
	int Width;
	int Height;
	char* Name;

public:
	HWND hwnd;
	HINSTANCE hInstance;
	LPDIRECT3D9 d3d;//doi tuong directx
	LPDIRECT3DDEVICE9 d3ddev;//thiet bi ve	


	FWGame(HINSTANCE hIns, char* windowName, int _Width,int _Height);
	~FWGame(void);
	bool InitWindow();
	bool InitDX();
	void Load();
	void Run();
	void Update(float time);

	void Render();
	void Shutdown();
};

